package com.example.systemappdemo.utils;

import android.os.Build;

/**
 * @auth: njb
 * @date: 2024/5/21 14:58
 * @desc: 系统指纹生成工具类
 */
public class FingerprintGeneratorUtils {
    public static String generateFingerprint() {
        String manufacturer = Build.MANUFACTURER;
        String brand = Build.BRAND;
        String name = Build.PRODUCT;
        String device = Build.DEVICE;
        String versionRelease = Build.VERSION.RELEASE;
        String buildId = Build.ID;
        String buildType = Build.TYPE;
        String buildTags = Build.TAGS;
        String incremental = Build.VERSION.INCREMENTAL;
        return String.format("%s/%s/%s:%s/%s/%s:%s/%s", brand, name, device, versionRelease, buildId, incremental, buildType, buildTags);
    }
}
